package com.jzrh.flashbee.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jzrh.flashbee.common.core.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author Jince
 * @since: 2023.11.22 下午 11:21
 * @description: 用户认证
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class FlashbeeUser extends BaseEntity {
    /**
     * 主键
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 密钥
     */
    private String accessKey;
    /**
     * 用户名
     */
    private String username;
}
